import sys
import os
import time
import json

with open(os.path.join(os.path.dirname(__file__), "../../config.json"), "r") as f:
    config = json.load(f)

# ServerBase = "http://112.6.126.153:8050"
# ServerBase = "http://10.95.10.33:8086"
# ServerBase = "http://10.95.10.83:9000/basedata"
# ServerBase = "http://10.95.11.199:8083"
# ServerBase = "http://10.95.11.199:9000/basedata"
# ServerBase = "http://10.95.11.57:9000/basedata"
ServerBase = config["base_url"]

StartWorkInfoURL = f"{ServerBase}/schedule/findAllRealStartTime"
ShiftInfoURL = f"{ServerBase}/sche/sch/findAllShiftRules"
LeaveInfoURL = f"{ServerBase}/workBreak/findWorkBreakAll"
ExistingWorkInfoURL = f"{ServerBase}/workDetail/findWorkDetailOfAlgorithm"
DeptAreaInfoURL = f"{ServerBase}/logicArea/findAll"
AreaResourceInfoURL = f"{ServerBase}/logicArea/findResourceLogicArea"
